#include <bits/stdc++.h>
#ifndef DEBUG
#define debug
#endif
using namespace std;
using i64 = int64_t;

mt19937_64 rnd(time(0));
int main() {
  cin.tie(0)->sync_with_stdio(0);
  for (int cas = 1; cas <= 50; cas ++) {
    freopen(format("data/data{:03}.in", cas).c_str(), "w", stdout);
    int limit = cas * 10;
    cout << rnd() % limit << ' ';
    for (int i = 0; i < cas + 10; i ++) {
      int op = rnd() % 4;
      if (op == 0) {
        cout << "+ " << rnd() % limit << ' ';
      } else if (op == 1) {
        cout << "- " << rnd() % limit << ' ';
      } else if (op == 2) {
        cout << "* " << rnd() % limit << ' ';
      } else {
        cout << "/ " << rnd() % limit + 1 << ' ';
      }
    }
    cout << endl;
    fclose(stdout);
  }
}